# encoding=utf-8

from PyQt5.QtWidgets import QApplication, QMainWindow
from call_main import MainPage

import sys
import reward


# if __name__ == '__main__':
# 	# 创建QApplication类的实例
# 	app = QApplication(sys.argv)
# 	# 创建一个主窗口
# 	mainWindow = QMainWindow()
# 	# mainWindow.setWindowFlags(PyQt5.QtCore.Qt.WindowMinimizeButtonHint | PyQt5.QtCore.Qt.WindowCloseButtonHint)
# 	# 创建Ui_MainWindow的实例
# 	mainUI = ui.ui_main.Ui_MainWindow()
# 	# 调用setupUi在指定窗口(主窗口)中添加控件
# 	mainUI.setupUi(mainWindow)
# 	# 显示窗口
# 	mainWindow.show()
# 	# 进入程序的主循环，并通过exit函数确保主循环安全结束
# 	sys.exit(app.exec_())


if __name__ == '__main__':
	reward.init()
	app = QApplication(sys.argv)
	main = MainPage()
	main.show()
	sys.exit(app.exec_())
